package com.example.layoutandlistview;

public interface FileDownloadConstants {
	// ===========================================================
	// Final Fields
	// ===========================================================
	
	// constants
	public static final int DOWNLOAD_BUFFER_SIZE = 4096;
	
	// used to check sdcard before download file
	public static final int SDcard_MOUNTED = 0;
	
	public static final int SDcard_UNMOUNT = 1;
	
	public static final int FILE_DOWNLOAD_EXIST = 2;
	
	public static final int PREPARED_DOWNLOAD = 3;
	
	// Used to communicate state changes in the DownloaderThread
	public static final int MESSAGE_DOWNLOAD_STARTED = 1000;
	public static final int MESSAGE_DOWNLOAD_COMPLETE = 1001;
	public static final int MESSAGE_UPDATE_PROGRESS_BAR = 1002;
	public static final int MESSAGE_DOWNLOAD_CANCELED = 1003;
	public static final int MESSAGE_CONNECTING_STARTED = 1004;
	public static final int MESSAGE_ENCOUNTERED_ERROR = 1005;
	
	public static final int MESSAGE_DOWNLOAD_CANCELED_BY_USER = 1006;
}
